55问答网
所有问题
当前搜索:
oracle fetch
Oracle
PL/SQL 下面的代码为什么出错啊!提示CASE与WHEN见出现不匹配字...
答:
case c_turnover 表明下面会直接列举取值 你下面的条件里面有case c_turnover<500000 因此,上面case c_turnover多余了,直接写case
oracle
的存储过程中不能alter table吗,还是有什么技巧?
答:
aa add(age number);end;/就是这么简单的一个存储过程,编译的时候报告4/2 PLS-00103: 出现符号"ALTER"在需要下列之一时: begindeclareexitforgotoif loopmodnullpragmaraisereturnselectupdatewhile<an identifier> << closecurrentdelete
fetch
lockinsertopenrollbacksavepointsetsql commit ...
c461m-mx本本可以完美安装mac osx10.11吗
答:
10g 试用版附带了有帮助的文档,通过
Oracle
Universal Installer 安装的,因此应首先解压缩下载的文件。打开一个终端窗口,进入下载文件所在的目录(可能是 ——/Desktop 或——/Documents),执行下列命令: $ ls MAC_DB_SERVER* 如果文件最后的扩展名为 .cpio.gz,则请运行下列命令将其解压缩。如果它最后为 .cpio,则...
Ubuntu Server 64bits 怎么安装 ruby-oci8
答:
(ADDRESS = (PROTOCOL = TCP)(HOST = host_name_or_ip)(PORT = 1521)) (CONNECT_DATA = (SID = SID)))'conn = OCI8.new('user', 'password', tnsnames)cursor = conn.exec('SELECT sysdate FROM dual')while r = cursor.
fetch
()puts r.join(',')end cursor.close conn.logoff ...
光标是什么
答:
光标也被称为游标。
Oracle
使用两种光标:显示光标和隐式光标。不管语句返回多少条纪录, PL/SQL 为使用的每一条 UPDATE 、 DELETE 和 INSERT 等 SQL 命令隐式的声明一个光标。当你在一个文本框或某种程序中输入文字时,总有一个光标来显示你将要输入文字的位置。大部分的光标都为一个小竖线,规则的...
如何使用python连接mysql数据库
答:
在 Python 语言环境下我们这样连接数据库。In [1]: from mysql import connector In [2]: cnx = connector.connect(host="172.16.192.100",port=3306,user="appuser",password="xxxxxx")但是连接数据库的背后发生了什么呢?答案 当我们通过驱动程序(mysql-connector-python,pymysql)连接 MySQL ...
在存储过程中怎样遍历表?
答:
一条语句就可以 update table_to set [name]=update_from.[name] from update_from where update_to.id=update_from.id
怎么把python查询到mysql数据库里的数据列表显示到网页上
答:
result=cur.
fetch
one()print result print 'ID: %s info %s' % result results=cur.fetchmany(5)for r in results:print r print '=='*10 cur.scroll(0,mode='absolute')results=cur.fetchall()for r in results:print r[1]conn.commit()cur.close()conn.close()except MySQLdb.Error,e...
sql表中120个数据每六个求一次平均值怎么写循环语句?
答:
得用过程了,你用的什么数据库?--好了,搞完了
oracle
下的:create or replace procedure zjwp as i number(9,3);bbb number(9,3);begin i:=1;while i<=120 loop select avg(a) into bbb from zjw where id between i and i+5;dbms_output.put_line(bbb);i:=i+6;end loop;en...
java.util.Date cannot be cast to java.lang.String
答:
我感觉是 queryContext.getQueryData().put("sxrq1", sdfDateFormat.format(new Date())有问题,这个是API http://docs.
oracle
.com/javase/7/docs/api/java/text/SimpleDateFormat.html#format(java.util.Date, java.lang.StringBuffer, java.text.FieldPosition)还有,你最好把错误发全了,要不...
首页
<上一页
42
43
44
45
46
47
48
49
50
76
其他人还搜